package com.netmarch.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="ansdict")
public class Ansdict  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7125192310321467449L;
	@Id
	private int id;
	private String value;
	
	@OneToMany(fetch = FetchType.LAZY)
	private List<User> user;

	public Ansdict() {
		super();
	}


	public Ansdict(int id, String value, List<User> user) {
		super();
		this.id = id;
		this.value = value;
		this.user = user;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public List<User> getUser() {
		return user;
	}

	public void setUser(List<User> user) {
		this.user = user;
	}

	
	
}
